<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<html>
<head>
    <link rel="stylesheet" href="./css/bootstrap/dist/css/bootstrap.css">
    <title>学生列表</title>
</head>
<body>
<div class="container">
    <!-- page-header -->
    <a href="./index.jsp" type="button" class="btn btn-info" aria-label="Left Align">
        <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
        返回
    </a>

    <hr style="border: 1px solid #ddd;">

    <table class="table table-hover table-striped" style="text-align: center;">
        <thead>
        <tr>
            <th style="text-align: center;">序号</th>
            <th style="text-align: center;">姓名</th>
            <th style="text-align: center;">是否批改</th>
            <th style="text-align: center;">操作</th>
        </tr>
        </thead>
        <tbody>
        <c:forEach items="${students}" var="student" varStatus="i">
            <tr>
                <td>${student.id}</td>
                <td>${student.name}</td>
                <td>YES</td>
                <td>
                    <div class="btn-group">
                        <a href="${pageContext.request.contextPath}/correctionDetailServlet?stu_id=${student.id}&task_id=${pageContext.request.getParameter("task_id")}"
                           type="button" class="btn btn-warning">详情</a>
                    </div>
                </td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
</div>
</body>
</html>
